package com.yenlien.traceyun.breed.entity;

import com.yenlien.traceyun.business.entity.TraceScanEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * Created by LiuSha on 2020/9/23.
 */
@Entity
@Table(name = "t_breed_crop")
@ApiModel(value = "养殖产出物")
public class BreedCrop extends TraceScanEntity {
    @Column
    @ApiModelProperty(value = "产出物类型")
    private String type;
    @Column
    @ApiModelProperty(value = "产出物批次号")
    private String batch;
    @Column
    @ApiModelProperty(value = "产出日期")
    private String outTime;
    @Column
    @ApiModelProperty(value = "数量")
    private String number;
    @Column
    @ApiModelProperty(value = "单位")
    private String units;
    @Column
    @ApiModelProperty(value = "产出负责人")
    private String name;
    @Transient
    @ApiModelProperty(value = "产出物明细")
    private List<BreedCropDetail> breedCropDetails;

    public List<BreedCropDetail> getBreedCropDetails() {
        return breedCropDetails;
    }

    public void setBreedCropDetails(List<BreedCropDetail> breedCropDetails) {
        this.breedCropDetails = breedCropDetails;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBatch() {
        return batch;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }

    public String getOutTime() {
        return outTime;
    }

    public void setOutTime(String outTime) {
        this.outTime = outTime;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getUnits() {
        return units;
    }

    public void setUnits(String units) {
        this.units = units;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
